package com.chocus.core.bean.product;

import java.io.Serializable;

/**
 * 品牌实体类
 * 
 * @author Administrator
 *
 */
public class BrandQuery implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// 品牌ID bigint
	private Long id;
	// 品牌名称
	private String name;
	// 描述
	private String description;
	// 图片URL
	private String imgUrl;
	// 排序 越大越靠前
	private Integer sort;
	// 是否可用 0 不可用 1 可用
	private Integer isDisplay;// is_display

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getIsDisplay() {
		return isDisplay;
	}

	public void setIsDisplay(Integer isDisplay) {
		this.isDisplay = isDisplay;
	}

	@Override
	public String toString() {
		return "Brand [id=" + id + ", name=" + name + ", description=" + description + ", imgUrl=" + imgUrl + ", sort="
				+ sort + ", isDisplay=" + isDisplay + "]";
	}

	// 扩展属性
	// 页数
	private Integer pageNo = 1;
	// 条数
	private Integer pageSize = 10;
	// 起始页
	private Integer startPage;

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		this.startPage = (pageNo - 1) * pageSize;
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.startPage = (pageNo - 1) * pageSize;
		this.pageSize = pageSize;
	}

	public Integer getStartPage() {
		return startPage;
	}

	public void setStartPage(Integer startPage) {
		this.startPage = startPage;
	}

}
